from lib.config.base import BaseConfig
from utils import common


class FirmwareConfig(BaseConfig):
    def __init__(self, path):
        super().__init__(path)

    def get_version(self):
        return common.get_data_value(self.__config, "version") or "-"

    def get_author(self):
        return common.get_data_value(self.__config, "author") or "hanxiaoxin"

    def get_date(self):
        return common.get_data_value(self.__config, "date") or "-"
